// 删除商品列表item
export function removeProductItem(list,id){
  let remove_index =list.findIndex((item) => item.id == id)
  list.splice(0, remove_index+ 1)
}

// 处理订单格式化时间
export function  mkfsTime(time){
  let lastIndexOf = time.lastIndexOf('.')
  return time.slice(0,lastIndexOf).split('T').join(' ')
}

export const handlerStatus={
  putIn_status :{
    "1": { value:'0',status:'待处理'},
    "2": { value:'1',status:'退货中'},
    "3": { value:'2',status:'已完成'},
    "4": { value:'3',status:'已拒绝'},
  }

}